﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using MakeItWeb.Framework;

namespace AllNations.Controls
{
    public partial class RotatingBanners : MakeItWeb.Framework.MakeItWebUserControl
    {
        public class ImageFile
        {
            public int Index { get; set; }
            public string ImageUrl { get; set; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var lst = GenericQry.GetDataSet("proc_cm_ListRotatingBanner", new StoredProcArgs());

                RadRotator1.DataSource = lst;
                RadRotator1.DataBind();
                rptItemNavigation.DataSource = lst;
                rptItemNavigation.DataBind();
            }
        }
    }
}